﻿@model List<CBApp.DataModels.ComicBook>

<div class="jumbotron">
    Comic Collection<br />
    <a class="btn btn-default btn-sm pull-right" href="/Home/AddComicBook">Add Comic</a>
</div>

<table class="table-bordered table-condensed">
    <tr>
        <th>Comic</th>
        <th>Title</th>
    </tr>
    @foreach (var c in Model)
    {
        <tr onclick="location.href='/Home/Details/@c.Id'">
            <td><img src="@c.Image" style="width:300px; height:350px" /></td>
            <td>@c.Title</td>
        </tr>
    }
</table>